package cn.lcc.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SendSmsParamDto {
    @NotNull(message = "验证码不能为空")
    private String imageCode;
    private String imageCodeKey;
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$",message = "手机号格式不正确")
    private String mobile;
}
